package com.jxl.domain.convert;


import com.jxl.domain.entity.AuthPermissionBO;
import com.jxl.infra.basic.entity.AuthPermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthPermissionBOConvert {

    AuthPermissionBOConvert INSTANCE = Mappers.getMapper(AuthPermissionBOConvert.class);

    /**
     * 类型转换
     * @param authPermissionBO
     * @return
     */
    AuthPermission convertBOToAuthPermission(AuthPermissionBO authPermissionBO);

    /**
     * 集合类型转换
     * @param authPermissionBOS
     * @return
     */
    List<AuthPermission> convertBOToAuthPermissionList(List<AuthPermissionBO> authPermissionBOS);
}
